-- GENERATED SPELL FOR [Mist Howler] --


function spell0_10644(pUnit, Event) --@Rend,n/a--
pUnit:FullCastSpellOnTarget(13443,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_10644', 15000, 1)
end

function spell1_10644(pUnit, Event) --@Tendon Rip,n/a--
pUnit:FullCastSpellOnTarget(3604,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_10644', 8000, 1)
end

function spell2_10644(pUnit, Event) --@Terrifying Howl,Self--
pUnit:FullCastSpellOnTarget(8715,pUnit)
pUnit:RegisterEvent('Sorts_10644', 3000, 1)
end

function Sorts_10644(pUnit, Event)
local choix_sorts_10644 = math.random(0, 2)
if choix_sorts_10644 == 0 then
pUnit:RegisterEvent('spell0_10644', 1, 1)
end
if choix_sorts_10644 == 1 then
pUnit:RegisterEvent('spell1_10644', 1, 1)
end
if choix_sorts_10644 == 2 then
pUnit:RegisterEvent('spell2_10644', 1, 1)
end
end

function mob10644_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_10644', math.random(1500, 3000), 1)
end

function mob10644_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10644_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10644_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(10644, 1, 'mob10644_Action')
RegisterUnitEvent(10644, 2, 'mob10644_Leave')
RegisterUnitEvent(10644, 3, 'mob10644_Kill')
RegisterUnitEvent(10644, 4, 'mob10644_Die')
